package com.wj.console.bean.welfareshop.result;

import java.io.Serializable;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

/**   
 * 类名称：LogisticsMsg
 * 类描述 ：物流信息
 * 创建人: Administrator  
 * 创建时间：2017-4-26 下午5:23:50  
 * 修改人：
 * 修改时间：
 * 修改备注：
 * 版本： V1.0
 */
public class LogisticsMsg implements Serializable{
	private static final long serialVersionUID = 1L;
	private String orderKey;//礼魔方订单号
	private String thirdOrder;//第三方订单号
	private String shipmentName;//快递公司
	private String shipmentOrder;//快递单号
	private String status;//物流状态, receive:揽件,transit:运输中, signed:已签收, refuse:拒收, other:其他
	private Date lastModifyTime;//最后更新时间, 格式yyyy-MM-dd HH:mm:ss, 例如:2016-06-01 11:12:13
	private List<LogisticsNode>contents ;//物流节点信息
	
	private String order_key;//礼魔方订单号
	private String third_order;//第三方订单号
	private String shipment_name;//快递公司
	private String shipment_order;//快递单号
	private String last_modify_time;//最后更新时间, 格式yyyy-MM-dd HH:mm:ss, 例如:2016-06-01 11:12:13
	
	public String getThirdOrder() {
		return thirdOrder;
	}
	public void setThirdOrder(String thirdOrder) {
		this.thirdOrder = thirdOrder;
	}
	public String getShipmentName() {
		return shipmentName;
	}
	public void setShipmentName(String shipmentName) {
		this.shipmentName = shipmentName;
	}
	public String getShipmentOrder() {
		return shipmentOrder;
	}
	public void setShipmentOrder(String shipmentOrder) {
		this.shipmentOrder = shipmentOrder;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public Date getLastModifyTime() {
		return lastModifyTime;
	}
	public void setLastModifyTime(Date lastModifyTime) {
		this.lastModifyTime = lastModifyTime;
	}
	public List<LogisticsNode> getContents() {
		return contents;
	}
	public void setContents(List<LogisticsNode> contents) {
		this.contents = contents;
	}
	public String getThird_order() {
		return third_order;
	}
	public void setThird_order(String third_order) {
		this.third_order = third_order;
		this.thirdOrder = third_order;
	}
	public String getShipment_name() {
		return shipment_name;
	}
	public void setShipment_name(String shipment_name) {
		this.shipment_name = shipment_name;
		this.shipmentName = shipment_name;
	}
	public String getShipment_order() {
		return shipment_order;
	}
	public void setShipment_order(String shipment_order) {
		this.shipment_order = shipment_order;
		this.shipmentOrder = shipment_order;
	}
	public String getLast_modify_time() {
		return last_modify_time;
	}
	public void setLast_modify_time(String last_modify_time) {
		this.last_modify_time = last_modify_time;
		try {
			this.lastModifyTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse(last_modify_time);
		} catch (ParseException e) {
			e.printStackTrace();
		}
	}
	public String getOrderKey() {
		return orderKey;
	}
	public void setOrderKey(String orderKey) {
		this.orderKey = orderKey;
	}
	public String getOrder_key() {
		return order_key;
	}
	public void setOrder_key(String order_key) {
		this.order_key = order_key;
		this.orderKey = order_key;
	}
	@Override
	public String toString() {
		return "LogisticsMsg [orderKey=" + orderKey + ", thirdOrder="
				+ thirdOrder + ", shipmentName=" + shipmentName
				+ ", shipmentOrder=" + shipmentOrder + ", status=" + status
				+ ", lastModifyTime=" + lastModifyTime + ", contents="
				+ contents + "]";
	}
}
